package org.yh.api.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.yh.api.fegin.MemberApiFegin;

@RestController
public class FeginController {

	@Autowired
	private MemberApiFegin memberApiFegin;

	@RequestMapping("/getmember")
	public String FeginGetMember() {
		//System.out.println("fegin调用getmember,线程名：" + Thread.currentThread().getName());
		return memberApiFegin.getMember();
	}

	@RequestMapping("/memberHystrix")
	public String memberHystrix() {
		//System.out.println("fegin调用memberHystrix,线程名：" + Thread.currentThread().getName());
		return memberApiFegin.memberHystrix();
	}
}
